Forums / General / Cannot clear the cache to view new content

Cannot clear the cache to view new content

Author Message

Randeep Walia

Tuesday 21 September 2004 11:53:36 pm

I set up a test environment on my local machine to create my EZ site and everything went fine, but when I migrated everything over to my server I've had a few problems.

Probably the most annoying one right now is that if I post new content or ammend old content the changes won't display on my site. Clearing the cache via the setup menu does not fix the problem either. Rather, I have to navigate into my var/sitename directory and delete the content folder for it to show up.

I checked up on my site.ini files and they seem to be correct to me, I thought I might have overode something I wasn't supposed to from my local setup but I'm not sure what it might be.

Any ideas on this problem? I am using EZ 3.4.1

__________________________________
Randeep Walia is http://www.rundeep.net powered by EZ Publish

Kåre Køhler Høvik

Wednesday 22 September 2004 1:06:18 am

Sounds like file permissions problem with you var dir. Please make sure that the webserver has got write access to everything in var/

Kåre Høvik

Randeep Walia

Wednesday 22 September 2004 11:39:53 am

Yeah, I know I need to do a better job of explining everything I did to check the problem: I already had done that and yes, permissions are set properly (and recursively) for all the directories under var.

When I installed 3.4, I told it to use 'Plain' as the type of website. I then went on to rename the site in a manner consistent with the Scandinavian Checkmates tutorial, however, I have noticed that there is a 'plain' directory under var along with my 'sitename' directory. Is this normal? Could it be causing the problem?

Randeep

__________________________________
Randeep Walia is http://www.rundeep.net powered by EZ Publish

Michael Zeidler

Wednesday 22 September 2004 1:56:59 pm

Not really. This new var file is created by your ez installation itself, thus it has write permissions for the new siteinterface within ./var. This is essential to create and delete all the cache- and content files you uploaded by using the new siteaccess.

-------------------------------------------------------------------------------------------
join #ezpublish on irc.freenode.org

Randeep Walia

Thursday 23 September 2004 3:12:00 pm

If these site permissions within the ./var directory were deleted, might that be causing the problem I'm talking about? I believe that I might have deleted the entire var directory at one point in the belief that it was all compiled content and would be regenerated. Maybe I was deadly wrong. I know for sure that this is where uploaded images are stored so I know better now than to go messing around inside of it but if I deleted the var directory- would I have caused the sorts of problems I am having now?

What I do know is this- on my test Windows development environment Clicking the Clear All Caches button will not reset the templates that are included by other templates via {include uri} statements- I have to delete my var/sitename/cache/template directory by hand. Content changes are updated automatically, however, as well as templates that serve as the root display- such as full view templates.

On my remote hosted Linux environment nothing, NOTHING gets updated until I delete the var/cache directory. Even if I add new content or change existing content, it won't show up.

I've gone through all my ini settings but I can't figure out what may be causing this problem.

__________________________________
Randeep Walia is http://www.rundeep.net powered by EZ Publish

Randeep Walia

Saturday 13 November 2004 7:03:13 pm

Okay, the problem was this- the permissions were set properly, but the ownership was not set properly. I had to get my hosting service to make Apache the owner of that folder and it worked. I also had the VarDir variable set to var/plain instead of var/sitename in my admin/site.ini file

__________________________________
Randeep Walia is http://www.rundeep.net powered by EZ Publish

eZ debug

Timing: Jan 18 2025 16:27:45
Script start
Timing: Jan 18 2025 16:27:45
Module start 'content'
Timing: Jan 18 2025 16:27:46
Module end 'content'
Timing: Jan 18 2025 16:27:46
Script end

Main resources:

Total runtime0.6234 sec
Peak memory usage4,096.0000 KB
Database Queries205

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0053 588.9531180.8203
Module start 'content' 0.00530.5053 769.7734622.4531
Module end 'content' 0.51050.1128 1,392.2266341.0625
Script end 0.6233  1,733.2891 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00420.6729210.0002
Check MTime0.00160.2532210.0001
Mysql Total
Database connection0.00070.106810.0007
Mysqli_queries0.553288.73892050.0027
Looping result0.00180.29662030.0000
Template Total0.600196.320.3000
Template load0.00230.370420.0012
Template processing0.597895.891620.2989
Template load and register function0.00010.012210.0001
states
state_id_array0.00070.112010.0007
state_identifier_array0.00060.094020.0003
Override
Cache load0.00200.3135280.0001
Sytem overhead
Fetch class attribute can translate value0.00100.153940.0002
Fetch class attribute name0.00090.137590.0001
XML
Image XML parsing0.00140.228440.0004
class_abstraction
Instantiating content class attribute0.00000.0030120.0000
General
dbfile0.00220.3526380.0001
String conversion0.00000.001330.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

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
6content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
6content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
6content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 20
 Number of unique templates used: 5

Time used to render debug report: 0.0002 secs