Ok here's the deal...
We host a website. We use <cfcache cachedirectory="thedir"> on the
index-page and the page that views articles based on an URL.id - simple and
easy, and it works nicely.
Ok... Now the customer changes the dynamic content on these pages and needs
to update the cached pages. I first implemented the old way of doing it -
deleting the tmp-files in the cachedir, but I suspect this caused a bit load
on the server, as the pages would be updated quite often during a workday.
Then I discovered action="flush". This does flush the pages quite nicely,
BUT only if the physical template has changed! It appears that it doesn't
catch that when the dynamic content has changed it should change the
tmp-file. It only works if the template is resaved before flushing.
Could anyone shed some light on this subject? Anyone using <cfache> the way
I'm trying to? Anyone ran into problems?
The templates makes use of rather heavy queries, and the site has a lot of
traffic. First the heavy queries had the server going slow in the busy
hours, and this was resolved after applying <cfcache>. However, we have
experienced a problem with the CF-server being unstable after this. Since
deleting the tmp-files with <cffile> was not recommended, I hoped that
<cfcache action="flush" directory="http://www.theurl/cache/"> would solve
it...
TIA, rgds
* Holger Lockertsen, Solutions Developer
* Pixelduck AS - Nedre Slottsgate 5, N-0157 OSLO, Noreg/Norway
* +47 23 31 03 04 / 91 83 20 51
* [EMAIL PROTECTED]
* http://www.pixelduck.com/
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists