We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Channel edits are saved correctly but these changes don't show up immediately in CP

How Do I?

vanerik's avatar
vanerik
4 posts
8 years ago
vanerik's avatar vanerik

Using EE2 since 2010 whitout problems. Started testing with EE3 (3.4.4) few weeks ago. Having this problem in CP with very basic channels:

  1. Create new entry > save > webpage shows entry online

  2. Edit entry > save > reload webpage > entry = updated

  3. Edit entry again > save: the entry is saved correctly (as i can see in the reloaded webpage) but the control pannel doesn’t show the last changes. I can go on and go on like that, changes are saved in the database but CP keeps showing the older version (after 1ste changes).

When I stop trying, after 15 minutes or so CP loads correct content. I have been testing with cache settings in EE CP and different browsers but no cure. Same problem with editing templates, changes are there in the live site but - starting from the 2nd edit - it takes a while before you see the changes in the CP.

So I’m not a programmer but under Debugging Output I enabled debugging and Log alerts and in CP - at the moment when changes are not showing - I have this message for /cp/publish/edit/entry/7: No $_POST variables found.

Any idea how I can fix this? Many thanks!

       
Derek Jones's avatar
Derek Jones
7,561 posts
8 years ago
Derek Jones's avatar Derek Jones

Hey vanerik! That info in the debugging just lets you know that the page you are looking at doesn’t have any POST request variables, which is normal on form load.

It sounds like you are saying that content looks as if it’s cached in the control panel but not the front end? If so, I would suggest trying from another computer on a different network (for instance, your phone over a cell data carrier), as it sounds like your network may be caching data and not displaying content in realtime.

If that doesn’t help, can you share who your host is, what version of PHP, and what add-ons you are running?

       
vanerik's avatar
vanerik
4 posts
8 years ago
vanerik's avatar vanerik

Thanks Derek for fast reply, indeed that’s exactly what’s happening, I will do the test with other computer/network, meanwhile some info about the host mijndomein.nl:

Apache 2.4.10 PHP 5.6.24 MySQL 5.5.38 Perl 5.20.2

http://phpinfo.mijndomeintje.com/

Varnish cashing: https://helpdesk.mijndomein.nl/hc/nl/articles/211739585-Varnish-caching

Add-ons: Rich Text Editor Third party Add-ons: Channel Images and SEO Lite.

       
Derek Jones's avatar
Derek Jones
7,561 posts
8 years ago
Derek Jones's avatar Derek Jones

Thanks vanerik; if I had to guess, Varnish is caching your control panel, and you’ll need to modify the configuration for Varnish to ignore requests to your admin.php.

       
vanerik's avatar
vanerik
4 posts
8 years ago
vanerik's avatar vanerik

Looks like its working by adding this on the bottom of htacces:

<Files admin.php>
FileETag None
Header unset ETag
Header set Cache-Control "max-age=0, no-cache, no-store, must-revalidate"
Header set Pragma "no-cache"
Header set Expires "Wed, 11 Jan 1984 05:00:00 GMT"
</Files>

I will check this out in detail tomorrow, many thanks, Erik

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.