1
peterr
Cache problem with template change
  • 2005/5/11 5:46

  • peterr

  • Just can't stay away

  • Posts: 518

  • Since: 2004/8/5 9


Hi,

I have installed the 'leaguestats' module, and noticed a 404 coming from:

http://example.com/modules/leaguestats/tablesort.js

the only files that have 'tablesort.js' in them are:

http://example.com/modules/leaguestats/templates/table_view.html
http://example.com/modules/leaguestats/templates/table_view2.html

and the code that is causing the 404 in both files is

<script type="text/javascript" src="tablesort.js">script>


so I changed the code to ..............

<script type="text/javascript" src="js/tablesort.js">script>


and uploaded the two files, however the _same_ 404 messages still appear, even though the 2 files have definitely been uploaded correctly.

I'm noticing that the cache is being used in the '/templates_c/' path, even though, the admin setting is "No Cache" for the League Stats module.

XOOPS is calculating the module ID for the leaguestats to be #4 ; where does it get this from, it could be the problem. The code from the admin dropdown box is:

<br />League Stats&nbsp;<select  size='1' name='module_cache[4]' id='module_cache[4]'>
<
option value='0' selected='selected'>No Cacheoption>
<
option value='30'>30 secondsoption>
<
option value='60'>1 minuteoption>
<
option value='300'>5 minutesoption>
<
option value='1800'>30 minutesoption>
<
option value='3600'>1 houroption>

<
option value='18000'>5 hoursoption>
<
option value='86400'>1 dayoption>
<
option value='259200'>3 daysoption>
<
option value='604800'>1 weekoption>
select>


Any clues please. :)

Peter

2
peterr
Re: Cache problem with template change
  • 2005/5/11 6:27

  • peterr

  • Just can't stay away

  • Posts: 518

  • Since: 2004/8/5 9


Hi,

Well, I have just realised that the template source, although residing in a path on the website, is actually stored in the database (doh !!! ).

So, I obviously can't modify templates locally and then simply upload them, it wil have to be:

1. Modify via admin ==> updates the template in the db
2. Download the new template file.

Boy, is my face red or what.

Peter

3
Mithrandir
Re: Cache problem with template change

Or you could just have updated the module in which case the source from the file would be inserted into the database.

4
peterr
Re: Cache problem with template change
  • 2005/5/11 7:35

  • peterr

  • Just can't stay away

  • Posts: 518

  • Since: 2004/8/5 9


Hi,

Quote:

Mithrandir wrote:
Or you could just have updated the module in which case the source from the file would be inserted into the database.


Ok, I think that will be easier next time, because after I used admin to edit the template, there was then a 'view' function, but from there, no way to update. So, I just found the appropriate row in the 'xoops_tplsource' table , and updated the db that way.

Thanks,

Peter

Login

Who's Online

275 user(s) are online (83 user(s) are browsing Support Forums)


Members: 0


Guests: 275


more...

Donat-O-Meter

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

Latest GitHub Commits