Clear Cache Doesn't Work in Admin

Author Message

GG 66

Tuesday 07 November 2006 6:35:52 am

The clear cache button isn't working. If I add content it doesn't appear on the site.

If I clear cache using the admin interface it doesn't work.

The same happens if I update pagelayout.tpl

I can access and delete files from public_html/var/corporate_site/cache/content/corporate_site

but I can't do this all the time. Any pointers gratefully received.

Claudia Kosny

Tuesday 07 November 2006 9:41:11 am

Hi GG

What version of ez do you use? What happens if you try to clear the cache using the admin interface - any error messages (enable full debug output before)?

Does the script \bin\php\ezcache.php work? (look in the file for the different options)

Claudia

GG 66

Wednesday 08 November 2006 9:45:38 am

Thanks for the reply,

Using ez 3.8.0

No errors appear when doing it through the admin.

Claudia Kosny

Wednesday 08 November 2006 1:16:06 pm

Hi GG

Hmm not sure what could cause the problem.

Does ez at least try to cache the cache (meaning reloading the page after clicking on clearcache does take a while)?
Does the cache clearing work if you do it directly on the setup tab of the admin view?
Does the cache clearing script work? Maybe also play a bit with the finegrained cache control, maybe you can pin the problem down to something specific.

Good luck with troubleshooting...

Claudia

Vincent Mellano

Wednesday 22 November 2006 1:03:31 am

Dear all,

I've got the same problem.
When I update something in the admin interface I need to clear the cache manually (button in the admin interface) to see my changes.
For example: if I change the sub-items sorting from "Published" to "Priority" I need to clear the content cache to see the priority fields where I can enter the priorities.
Same for content change.

I confirm that my site caches all content. It takes a long time to access pages when I clear the cache.

My settings:

override/site.ini.append.php:
[ContentSettings]
CachedViewModes=full;sitemap;pdf
ViewCaching=enabled
PreViewCache=enabled

[TemplateSettings]
NodeTreeCaching=enabled
TemplateCache=enabled
TemplateCompile=enabled
TemplateCompression=enabled
TemplateOptimization=enabled

extensions/mysite/settings/viewcache.ini.append.php
[ViewCacheSettings]
SmartCacheClear=enabled

OS: Solaris
Ezpublish 3.8.6

Many thanks for your help

Best regards from Luxembourg

Vincent

Vincent Mellano

Thursday 14 December 2006 5:04:30 am

I forgot to say that the same settings work on Windows but not on solaris.

Xavier Dutoit

Thursday 14 December 2006 7:42:50 am

If this is about dev, I suggest you to use this extension to clear the cache only on the right page:

http://ez.no/community/forum/developer/template_developer_life_saver_easyadmin_updated

If this is about updating the front when you edit in the back, that's probably a setting to add on your
content.ini.append.php for your admin

[VersionView]
AvailableSiteDesignList[]
AvailableSiteDesignList[]=frontoffice

See the content.ini, the syntax has changed, not sure if it's before or after the version you use.

X+

http://www.sydesy.com

Vincent Mellano

Thursday 14 December 2006 8:05:43 am

I've also tryed this even if they say it's deprecated in the version I'm using (3.8.6).

My admin siteaccess site.ini.append.php seems to be correct.

It's seems that smart clear cache checks in:

RelatedSiteAccessList[]
RelatedSiteAccessList[]=frontoffice
RelatedSiteAccessList[]=admin

And I've in the same file

[ContentSettings]
PreViewCache=enabled

<b>The thing is that I made an exact copy of my site on windows and it work fine there.</b>

My cache directory permissions are correct. (full rights to all).

As anyone tried to install this version of Ezpublish on Solaris and made the smart clear cache work?

Thanks a lot

Vincent

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 22:18:48
Script start
Timing: Jan 18 2025 22:18:48
Module start 'layout'
Timing: Jan 18 2025 22:18:48
Module start 'content'
Timing: Jan 18 2025 22:18:48
Module end 'content'
Timing: Jan 18 2025 22:18:48
Script end

Main resources:

Total runtime0.8327 sec
Peak memory usage4,096.0000 KB
Database Queries76

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0060 587.9141152.6250
Module start 'layout' 0.00600.0031 740.539139.4453
Module start 'content' 0.00910.8220 779.9844667.2344
Module end 'content' 0.83110.0015 1,447.218816.1563
Script end 0.8326  1,463.3750 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.4028160.0002
Check MTime0.00140.1628160.0001
Mysql Total
Database connection0.00080.094910.0008
Mysqli_queries0.755090.6778760.0099
Looping result0.00080.0922740.0000
Template Total0.796495.620.3982
Template load0.00220.260520.0011
Template processing0.794295.383120.3971
Template load and register function0.00020.026310.0002
states
state_id_array0.00100.123410.0010
state_identifier_array0.00150.180420.0008
Override
Cache load0.00200.2366780.0000
Sytem overhead
Fetch class attribute can translate value0.00070.085640.0002
Fetch class attribute name0.00120.145590.0001
XML
Image XML parsing0.00080.100940.0002
class_abstraction
Instantiating content class attribute0.00000.002390.0000
General
dbfile0.00080.0945160.0000
String conversion0.00000.001340.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
8content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
18content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
9content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 39
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs