Jump to content


Could someone explain caching, please?


  • You cannot reply to this topic
16 replies to this topic

#1 WebbyMom

    Etomite Forum Fan

  • Member
  • Pip
  • 112 posts

Posted 25 August 2004 - 03:21 PM

I have some Chunks in my template which I have deleted bits out of or changed bits in (and then saved them) - but the bits are either still showing or unchanged when I view my pages. :P Does this have anything to do with caching? I un-selected the caching option for that page, cleared my browser history and files, but these bits are still not changing in that Chunk when viewing the page.

Am I right in understanding that caching means the Etomite database takes a "snapshot" of the page so that it loades faster the next time? And if so, why wouldn't un-selecting the caching option (leaving the Empty Cache? option ticked) erase what was supposedly saved?

And if caching is not the problem here, then can anyone figure out what I'm doing wrong?

This is RC2, btw.

#2 R.S.

    Etomite Forum Fan

  • Member
  • Pip
  • 99 posts

Posted 25 August 2004 - 03:29 PM

There's an option "launch site" in the left upper corner. AFAIK this deletes cached files so they are regenerated at first hit....

Best,

Remon

#3 WebbyMom

    Etomite Forum Fan

  • Member
  • Pip
  • 112 posts

Posted 25 August 2004 - 03:34 PM

R.S. said:

There's an option "launch site" in the left upper corner. AFAIK this deletes cached files so they are regenerated at first hit....

Thanks, Remon - I tried it, but it didn't work. Then I tried "Refresh Site", just below it, and this is what I got:

Quote

0 documents were published.
0 documents were unpublished.
Cache: Found 5 files in cache directory and deleted 0 cache files.
New cache files will be created when pages are requested.

:?: <sigh>

EDIT: I also tried deleting the whole Chunk, re-creating the Chunk, and still no luck. Also checked it out in another browser, no diff.

#4 R.S.

    Etomite Forum Fan

  • Member
  • Pip
  • 99 posts

Posted 25 August 2004 - 03:57 PM

Hi,

Maybe a stupid suggestion, but are you really sure you included the right chunk in your page source?
(Thats kind of problems I sometimes encounter, so nothing personal :-) )

No other ideas actually :-(


Remon

#5 WebbyMom

    Etomite Forum Fan

  • Member
  • Pip
  • 112 posts

Posted 25 August 2004 - 04:00 PM

Not a stupid question, but yep, checked and double-checked. :( There's actually two separate chunks in two separate templates, and I checked them both to make sure I was inserting and calling the right one in the right place, and that all the i's were dotted and t's were crossed......

#6 Guest_Alex_*

  • Guests

Posted 25 August 2004 - 04:01 PM

If you've deleted it, it shouldn't be showing anymore. Are you sure it's not your local cache? The browser's cache?

If not, make sure the chunk really isn't in Etomite anymore, and that the contents of the chunk aren't hardcoded into the template itself.

Failing that, delete the contents of the assets/cache folder, and then choose 'refresh site' to rebuild the main Etomite cache files.

Failing that... let me know...

#7 WebbyMom

    Etomite Forum Fan

  • Member
  • Pip
  • 112 posts

Posted 25 August 2004 - 04:10 PM

OK, now there's big problems.

Deleted the chunk. Viewed the page, it was still showing.

Deleted the chunkCache item in assets/cache. Re-viewed the page to test, gave me a parse error as there was not chunkCache. Re-made the chunk, saved it.

Tried launching the site - it gives me a file download dialogue box saying I should download "etomite". 'Course I can't.

Then tried to view the page in question in the manager, it wants me to download "index.php". Ack! Click cancel and I get a big fat nothing in the view pane.

:blink:

EDIT: AAAAAAAAAAAAAAAAAAaargh! I forgot to clear the browser cache before I viewed it after deleting the chunk............ Oh, forget it, I'm going to start over..... <sigh> Too much clicking this morning when I know I shouldn't even be on here, got other things I must be doing....... one click too fast....... <sigh>

#8 R.S.

    Etomite Forum Fan

  • Member
  • Pip
  • 99 posts

Posted 25 August 2004 - 04:31 PM

Hmmm strange,

Just for the record (I don't know if you're running a web-server locally?) but behaveour like saving "index.php" instead of showing it often means the webserver doesn't run.....
Just in case something weird happend...

Success

Remon

#9 Guest_Alex_*

  • Guests

Posted 25 August 2004 - 05:07 PM

Nope, this happens on Etomite if you open the site whilst the etomiteCache file hasn't been written. It's trying to find out whether to send a html or an xml header, can't, so it sends an empty header, which confuses the browser.

If you refresh the site, it *should* recreate the entire etomiteCache (not the documents, just the settings etc).

So go into Etomite and choose 'Refresh Site' - it'll rebuild the entire cache. Also, just to be sure, open and save the Etomite Configuration. You don't need to change anything, but you do need to save. This is fixed for 06 final/RC3 (?) ;)

#10 WebbyMom

    Etomite Forum Fan

  • Member
  • Pip
  • 112 posts

Posted 25 August 2004 - 05:29 PM

Refreshed. In my cache I now have

index.html
etomiteCache.idx

Re-saved the configuration.

Still can't view a file without it wanting me to download index.php.

#11 pcwacht

    Etomite Forum Fan

  • Member
  • Pip
  • 135 posts

Posted 25 August 2004 - 05:46 PM

Dunnoh if this will help,

In IE use CTRL-F5 to really reload the page.

There are three places where caching can occur:
1 At your browser, your local pc
2 At your isp, known as proxy (check your connection settings)
3 At etomite site

CTRL-F5 will deal with first 2.
At your local cache it works 100%, at your isp it'll work 95% (some proxies are wrongly configured)

Clearing cache of the page wich using the chuncks, or refreshing site deals with nr 3

Sometimes closing all your browser windows helps allso.

Hope this will help you....

Good luck,
John

#12 R.S.

    Etomite Forum Fan

  • Member
  • Pip
  • 99 posts

Posted 25 August 2004 - 05:46 PM

Does it still happen in the manager as well?

This is very weird, tried to reproduce it here, but to no avail

Remon

#13 WebbyMom

    Etomite Forum Fan

  • Member
  • Pip
  • 112 posts

Posted 25 August 2004 - 07:28 PM

Thanks, John and Remon, but yes, it's still happening in the manager, and I've deleted all my cache in my browsers, and it's still happening there, too. Refreshed the site, the whole she-bang.

Any other ideas anyone? If not, I'm going to assume that I made a really big and unknown boo-boo when updating to RC2 and just wipe the whole thing and start over. (No biggy, really, as there was no real content there at this point yet.)

Unless Alex wants me to continue troubleshooting, but I'm too leary that it was me who did something wrong. :ph34r:

I'm also hating this manager document tree, so I might go back to RC1. :betterwink:

#14 Guest_Alex_*

  • Guests

Posted 25 August 2004 - 07:49 PM

OK, hope you haven't wiped it yet. :)

Open the etomiteCache.idx file (it's just a php file, you can rename it or open in in notepad) and look for something like this (assuming your document has ID 1):

$this->contentTypes[1] = 'text/html';

If you find that, then it means the content type is saved properly, and Eto will send out a text/html header (which means it's a regular text document). If you can't find the corresponding document type for the document, something is broken.

Also, while you're at it, look for (where YourChunk is the name of your chunk):

$this->chunkCache['YourChunk']

Once you've found the chunk you've changed, paste the contents of it into this form, press 'decode' and it'll show you the contents of the chunk.

#15 Ralph

    Loves Etomite Forums!

  • Admin
  • 6,524 posts
  • Gender:Male

Posted 25 August 2004 - 07:54 PM

Although I'm sure you've already checked this, have you tried manually emptying the entire cache directory :?: I had one occurance where I had to manually empty my cache directory after upgrading to RC2... Also, and again you've probably already checked this, are you sure that the document which calls the Chunk in question is not cached... :?: And another question - is any of the data provided by the Chunk external to Etomite... :?:

Sure seems like an elusive problem we have here... :betterwink:

#16 WebbyMom

    Etomite Forum Fan

  • Member
  • Pip
  • 112 posts

Posted 25 August 2004 - 10:47 PM

Alex, on Aug 25 2004, 12:49 PM, said:

OK, hope you haven't wiped it yet. :)

Open the etomiteCache.idx file (it's just a php file, you can rename it or open in in notepad) and look for something like this (assuming your document has ID 1):

$this->contentTypes[1] = 'text/html';

If you find that, then it means the content type is saved properly, and Eto will send out a text/html header (which means it's a regular text document). If you can't find the corresponding document type for the document, something is broken.

Check. Got 'em numbered 1-15 just like that.

Quote

Also, while you're at it, look for (where YourChunk is the name of your chunk):

$this->chunkCache['YourChunk']

Once you've found the chunk you've changed, paste the contents of it into this form, press 'decode' and it'll show you the contents of the chunk.

Um...... just the contents or the PHP as well?

Content only, I get
¶»]ú'

Content and PHP tags, I get
¶¬r§&œ…隊rì‰×›j¿

;) Just in case. And, I have no idea what that means, but it's all Greek to me. Or maybe Dutch...... ;)

Ralph:
Yup, manually deleted the entire cache directory. Not caching the document was the first thing I did. And some of the data that USED TO BE provided by the Chunk was external to Etomite, but that's the part I wanted to get rid of (it was a site search feature, and I'll just use a snippet for that now), so I deleted it. It didn't show up as deleted. I let it go, but then when I changed a URL to a link in the same sidebar on the second template, and that didn't change in viewing either, then I figured I had a probby. ;)

#17 Kisha

    Etomite Forum Newbie

  • Member
  • 11 posts

Posted 06 September 2004 - 03:51 PM

I had the same problem with my site, and I think I've found the culprit.. at least for me, if no one else. :) I created the site originally in a subdirectory called etomite. I did all the setting up of the site there.. content creation, snippets, etc. Then I moved it to the root of the site. Now when I change my chunks, it seems to save in the right place (assets/cache) but the site still looks for the cached files in etomite/assets/cache. Interestingly, the changed chunk worked on my first page, but all the other pages had the old chunk. If I delete (or rename, rather) the etomite directory, the whole site breaks completely, giving me a server error. Deleting the contents of that folder makes everything go wonky (all pages lead to 404s.)

I copied the contents of my new cache (assets/cache) to override the old cache, and the chunk issue seems to be (mostly) fixed, except for one snippet that just doesn't work anymore.. I haven't looked at fixing that at all yet, though.

I don't know how to fix the actual problem, but this was a fix for the symptoms anyway.. ;)





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users