1
mandrew
6GB smarty_cache
  • 2011/1/17 0:58

  • mandrew

  • Just popping in

  • Posts: 26

  • Since: 2010/11/10


I've had a googlebot crawling thro my website for days now and filling up my harddrive. When I looked at the cache/smarty_cache file it was massive (6GB). How can I clean out this file. Can I delete it or am I asking for problems.

XOOPS Version XOOPS 2.4.5
PHP Version 5.3.1
mySQL Version 5.1.41

Thanks

2
Mamba
Re: 6GB smarty_cache
  • 2011/1/17 2:05

  • Mamba

  • Moderator

  • Posts: 11409

  • Since: 2004/4/23


You can delete all of the files in Cache...

If you have 2.5.0, you can use "Maintenance" in the Admin, otherwise you can delete the files directly from your Host's CP
Support XOOPS => DONATE
Use 2.5.11 | Docs | Modules | Bugs

3
mandrew
Re: 6GB smarty_cache
  • 2011/1/17 15:37

  • mandrew

  • Just popping in

  • Posts: 26

  • Since: 2010/11/10


Thanks Mamba for your speedy response. I deleted files xoops_data/cache/smarty_cache & smarty_compile. This certainly cleaned up my hard drive, however the website now doesn't load with this error message:
-------------------
This page cannot be displayed due to an internal error.

You can provide the following information to the administrators of this site to help them solve the problem:

Error: Smarty error: [in /opt/lampp/htdocs/newsletter/themes/xoops_thm_exnews2/theme.html line 17]: syntax error: unrecognized tag: /favicon.ico (Smarty_Compiler.class.php, line 446)
--------------------

I mkdir smarty_cache and smarty_compile with same permissions but still error exists, any suggestions as I can't even open the website.
Thanks

4
andrey3761
Re: 6GB smarty_cache

What is the content of the file "/themes/xoops_thm_exnews2/theme.html" ?

5
Mamba
Re: 6GB smarty_cache
  • 2011/1/17 17:38

  • Mamba

  • Moderator

  • Posts: 11409

  • Since: 2004/4/23


Do you have exactly the same directory structure as before?

You should have:

xoops_data
-- caches
------ smarty_cache
------ smarty_compile
------ xoops_cache

Caches and everything below should have 777 permissions
Support XOOPS => DONATE
Use 2.5.11 | Docs | Modules | Bugs

6
mandrew
Re: 6GB smarty_cache
  • 2011/1/17 18:56

  • mandrew

  • Just popping in

  • Posts: 26

  • Since: 2010/11/10


Yes the file system is the same as before. It is placed inside the xxx file which is outside the xoops folder in htdocs (as per xoops recomendations)
---------------------------
/opt/lampp/xxxxxxxx/xoops_data/caches$ ls -al
total 24
drwxrwxrwx 5 andrew andrew 4096 2011-01-17 10:48 .
drwxr-xr-x 4 andrew andrew 4096 2011-01-16 19:48 ..
-rw-r--r-- 1 andrew andrew 33 2010-11-08 18:24 index.html
drwxrwxrwx 2 andrew andrew 4096 2011-01-16 19:14 smarty_cache
drwxrwxrwx 2 andrew andrew 4096 2011-01-17 09:38 smarty_compile
drwxrwxrwx 2 andrew andrew 4096 2010-12-06 19:23 xoops_cache
---------------------------

7
playsome
Re: 6GB smarty_cache
  • 2011/1/17 21:28

  • playsome

  • Not too shy to talk

  • Posts: 197

  • Since: 2009/4/15


Sounds like some code in your theme.html has become messed up.

Download your theme.html file and goto line 17 and make sure it looks like this

<link rel="shortcut icon" type="image/ico" href="<{xoImgUrl icons/favicon.ico}>" />


Then re-upload it, maybe goto admin and activate check templates for modification and submit and them turn check templates for modification off.

8
mandrew
Re: 6GB smarty_cache
  • 2011/1/17 22:55

  • mandrew

  • Just popping in

  • Posts: 26

  • Since: 2010/11/10


I've corrected the problems in theme.html and I can at least get into the website. there are still some issues but will hopefully sort these out myself.
Thank you

9
andrey3761
Re: 6GB smarty_cache

Replace with:

<link rel="shortcut icon" type="image/ico" href="<{xoImgUrl}>/icons/favicon.ico" />


Should work.

Login

Who's Online

342 user(s) are online (175 user(s) are browsing Support Forums)


Members: 0


Guests: 342


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits