Page 1 of 1

Updating page content

Posted: Sun Nov 15, 2015 10:54 am
by Barrowboy
Version 1.12

Can you explain why we don't see the content changes immediately?

The changes are showing in the preview but not showing on the site.

Do we have to ask viewers to refresh their browsers each time to see any updated content?

Do we have to clear the cache each time on the system?

What are the correct cache settings etc.?
In advanced tap: We have.
Allow Browser to Cache Pages: not ticked.
Server Cache Settings: set to Zero.


Thanks

Re: Updating page content

Posted: Sun Nov 15, 2015 11:51 am
by velden
This *might* be caused by time differences between database and/or filesystem and php server.

It then prevents the caching system from working properly.

So check whether both mysql and filesystem use same time as php server.

Filesystem can be checked in 'System Information'. Search for 'Check for filesystem time differences (server_time_diff)'

Database can be checked by creating a temporary UDT and run it (from within 'run UDT' admin page):

Code: Select all

$db = cmsms()->GetDb();
$query = 'select UNIX_TIMESTAMP()';
$dbtime = $db->GetOne($query);
$servertime = time();
echo 'Time difference: ' . abs($dbtime-$servertime);
Time difference should be less than 3 (seconds).

Re: Updating page content

Posted: Sun Nov 15, 2015 12:10 pm
by Barrowboy
Hi

Thanks for your response.

The 'Check for file difference' is:-
no filesystem time difference found

Running your UDT code shows/
Time difference: 0

Any further suggestion what the problem may be.

This is the Server information

Server API (server_api) cgi-fcgi
Server Database (server_db_type) mysql (mysqli)
Server Database Version (server_db_version) Success 5.5.46
Check database access levels (server_db_grants) Success found a "grant all" statement that appears to be suitable
Check for filesystem time differences (server_time_diff) Success no filesystem time difference found
Server Software (server_software) apache
Server Operating System (server_os) linux 2.6.32-531.29.2.lve1.3.11.1.el6.x86_64 on x86_64
Timezone Offset (tz_offset) Success 0



Regards

Re: Updating page content

Posted: Sun Nov 15, 2015 2:56 pm
by Rolf
How and/or when did this started?

Re: Updating page content

Posted: Sun Nov 15, 2015 3:13 pm
by Barrowboy
Hi Rolf

We are unsure because we have only just finished developing the site and made it go live there are over 400 pages of content and one of our editors updated a page yesterday and reported the fault. We have now noticed that if we update a page as Administrators its the same.

If we reset the system cache and refresh the page it seems ok, but this is not an acceptable way to go forward we have about one hundred editors to give access too their relevant pages.

It reacts the same on IE and Chrome.

Are there any systems settings we have overlooked.

I must say the system is ''Great'' and everyone loves it.
Regards

Re: Updating page content

Posted: Sun Nov 15, 2015 3:45 pm
by Rolf
I just had the same problem and somehow Smarty Caching was enabled. This was in 2.0.1.1 though...

Re: Updating page content

Posted: Sun Nov 15, 2015 4:00 pm
by Barrowboy
Phew

That's a weight off my mind.

I've just unticked the smarty caching it it now works ok.

Will do further checks tomorrow.

Many thanks for point me in the right direction.