Zum Inhalt springen

Caching Probleme

Erstellt am 19. Juni 2006 · 14 Antworten · letzte Antwort am 20. Juni 2006

Tags: Frage

bkahle ·

Hallo,

ich habe ein Projekt übernommen, in dem vorher verschiedene Dienstleister "rumgewerkelt" haben, und komme dort mit den selbst-entwickelten Extensions nicht weiter.

Diese sollen in der Indexsuche auftauchen und ich habe alle mir bekannten Tricks ausprobiert, es wird einfach nicht gecached. Meine eigenen Extensions werden gecached:

$this->allowCaching = 1;
$GLOBALS['TSFE']->set_cache_timeout_default(1);

Wenn ich das Adminpanel aufmache, sehe ich, dass die anderen Extensions in der Tat nicht gecached werden, weil sie davon ausgeschlossen worden sind:

..
/Non-cached objects/Include libraries 	 	4 	
Files for inclusion: "typo3conf/ext/xxx/pi5/class.tx_xxx_pi5.php"
..

Ich bekomme nicht heraus, wie ich Typo3 erklären kann, dass auch die Extension gecached werden soll, bzw. wo steht, dass sie nicht gecached werden soll. Habe dazu bereits "LIKE"-SQL-Abfragen über "sys_template" gemacht, um dort vielleicht irgendetwas zu finden, aber ich finde einfach nichts. #angry#

Grüße,
Björn Kahle

bkahle ·

Hi,

danke für die rasante Antwort. Wo steht das denn, in der "ext_localconf.php" bei "addPItoST43" ? Habe mir eben mal das gesamte TS aufgeben lassen und es steht wirklich auf "USER_INT".

Habe in der Main-Methode auch

$this->pi_USER_INT_obj = 0;

stehen, hilft nicht..

Gruss,
Björn

steffenk ·

zum einen ist diese Zeile aus der ext_localconf.php dafür verantwortlich:

t3lib_extMgm::addPItoST43($_EXTKEY,'pix/class.tx_ext_pix.php','_pix','list_type',1);

0=no cache, 1=cache

Man kann es auch im TS umstellen, entweder im Object Browser oder direkt

plugin.tx_ext_pix = USER
Frank79 ·

ich habe auch das Problem, dass meine eigene Extension nicht gecached wird und bekomme es einfach nicht hin....

t3lib_extMgm::addPItoST43($_EXTKEY,'pi1/class.tx_dtshop_pi1.php','_pi1','list_type',1);

steht auf 1

plugin.tx_dtshop_pi1 = USER

steht auch auf user

$this->pi_USER_INT_obj=0;
$this->allowCaching = 1;
$GLOBALS['TSFE']->set_cache_timeout_default(1);

hab ich auch alles getestet und trotzdem wird die Extension nicht gecached.
Was kann das noch sein?!?

Gruß
Frank

bkahle ·

Funktioniert das Caching bei anderen Extensions ?

Gibt es zu der Extension Constants/Setup Code ? Ich habe bei meinem Problem das Adminpanel aufgemacht und mir den gesamten TS-Code ausgeben lassen. So konnte ich erkennen, dass da noch an verschiedenen Stellen das Plugin " = USER_INT" gesetzt worden ist.

HTH

Frank79 ·

ich blick da momentan gar nicht mehr durhc und bin nur noch genervt.

Jetzt habe ich sogar ganz normale Seiteninhalte die nicht gecached werden wenn ich die Seite anschaue.
Ich blick echt nicht mehr durch bei der Indexsuche...

steffenk ·

schau auch auf die Url, ob da ein no_cache=1 auftaucht. Dann ist es entweder global abgeschaltet

config.no_cache=1

oder bei einzelnen Seiten angeklickt.

Frank79 ·

ja das mit dem no_cache weiss ich, das taucht aber bei keiner Seite auf.
Ich hab eben mal alle indextabellen gelöscht und bin danach auf eine Seite ... ohne Erfolg.

wenn ich die Tabellen lösche, die indexed_search neu installiere und dann auf eien Seite gehe müsste doch die Seite eigentlich sofort indexiert werden oder?!?

Frank79 ·

config.index_enable = 1
config.index_externals = 1

war die ganze zeit schon eingetragen.
irgendwas ist da total komisch.
Wenn ich im Extmanager auf die IndexedSearch klicke

ALTER TABLE index_phash CHANGE phash phash int(11) NOT NULL default '0'; 
 Current value: int(11) default '0' 
 ALTER TABLE index_phash CHANGE phash_grouping phash_grouping int(11) NOT NULL default '0'; 
 Current value: int(11) default '0' 
 ALTER TABLE index_phash CHANGE cHashParams cHashParams tinyblob NOT NULL; 
 Current value: tinyblob 
 ALTER TABLE index_phash CHANGE data_filename data_filename tinytext NOT NULL; 
 Current value: tinytext 
 ALTER TABLE index_phash CHANGE data_page_id data_page_id int(11) unsigned NOT NULL default '0'; 
 Current value: int(11) unsigned default '0' 
 ALTER TABLE index_phash CHANGE data_page_reg1 data_page_reg1 int(11) unsigned NOT NULL default '0'; 
 Current value: int(11) unsigned default '0' 
 ALTER TABLE index_phash CHANGE data_page_type data_page_type tinyint(3) unsigned NOT NULL default '0'; 
 Current value: tinyint(3) unsigned default '0' 
 ALTER TABLE index_phash CHANGE data_page_mp data_page_mp tinytext NOT NULL; 
 Current value: tinytext 
 ALTER TABLE index_phash CHANGE gr_list gr_list tinytext NOT NULL; 
 Current value: tinytext 
 ALTER TABLE index_phash CHANGE item_type item_type varchar(5) NOT NULL default ''; 
 Current value: varchar(5) default '' 
 ALTER TABLE index_phash CHANGE item_title item_title tinytext NOT NULL; 
 Current value: tinytext 
 ALTER TABLE index_phash CHANGE item_description item_description tinytext NOT NULL; 
 Current value: tinytext 
 ALTER TABLE index_phash CHANGE item_mtime item_mtime int(11) NOT NULL default '0'; 
 Current value: int(11) default '0' 
 ALTER TABLE index_phash CHANGE tstamp tstamp int(11) unsigned NOT NULL default '0'; 
 Current value: int(11) unsigned default '0' 
 ALTER TABLE index_phash CHANGE item_size item_size int(11) NOT NULL default '0'; 
 Current value: int(11) default '0' 
 ALTER TABLE index_phash CHANGE contentHash contentHash int(11) NOT NULL default '0'; 
 Current value: int(11) default '0' 
 ALTER TABLE index_phash CHANGE crdate crdate int(11) NOT NULL default '0'; 
 Current value: int(11) default '0' 
 ALTER TABLE index_phash CHANGE parsetime parsetime int(11) NOT NULL default '0'; 
 Current value: int(11) default '0' 
 ALTER TABLE index_phash CHANGE sys_language_uid sys_language_uid int(11) NOT NULL default '0'; 
 Current value: int(11) default '0' 
 ALTER TABLE index_phash CHANGE item_crdate item_crdate int(11) NOT NULL default '0'; 
 Current value: int(11) default '0' 
 ALTER TABLE index_phash CHANGE externalUrl externalUrl tinyint(3) NOT NULL default '0'; 
 Current value: tinyint(3) default '0' 
 ALTER TABLE index_phash CHANGE recordUid recordUid int(11) NOT NULL default '0'; 
 Current value: int(11) default '0' 
 ALTER TABLE index_phash CHANGE freeIndexUid freeIndexUid int(11) NOT NULL default '0'; 
 Current value: int(11) default '0' 
 ALTER TABLE index_fulltext CHANGE phash phash int(11) NOT NULL default '0'; 
 Current value: int(11) default '0' 
 ALTER TABLE index_fulltext CHANGE fulltextdata fulltextdata mediumtext NOT NULL; 
 Current value: mediumtext 
 ALTER TABLE index_rel CHANGE phash phash int(11) NOT NULL default '0'; 
 Current value: int(11) default '0' 
 ALTER TABLE index_rel CHANGE wid wid int(11) NOT NULL default '0'; 
 Current value: int(11) default '0' 
 ALTER TABLE index_rel CHANGE count count tinyint(3) unsigned NOT NULL default '0'; 
 Current value: tinyint(3) unsigned default '0' 
 ALTER TABLE index_rel CHANGE first first tinyint(3) unsigned NOT NULL default '0'; 
 Current value: tinyint(3) unsigned default '0' 
 ALTER TABLE index_rel CHANGE freq freq smallint(5) unsigned NOT NULL default '0'; 
 Current value: smallint(5) unsigned default '0' 
 ALTER TABLE index_rel CHANGE flags flags tinyint(3) unsigned NOT NULL default '0'; 
 Current value: tinyint(3) unsigned default '0' 
 ALTER TABLE index_words CHANGE wid wid int(11) NOT NULL default '0'; 
 Current value: int(11) default '0' 
 ALTER TABLE index_words CHANGE baseword baseword varchar(60) NOT NULL default ''; 
 Current value: varchar(60) default '' 
 ALTER TABLE index_words CHANGE metaphone metaphone int(11) NOT NULL default '0'; 
 Current value: int(11) default '0' 
 ALTER TABLE index_words CHANGE is_stopword is_stopword tinyint(3) NOT NULL default '0'; 
 Current value: tinyint(3) default '0' 
 ALTER TABLE index_section CHANGE phash phash int(11) NOT NULL default '0'; 
 Current value: int(11) default '0' 
 ALTER TABLE index_section CHANGE phash_t3 phash_t3 int(11) NOT NULL default '0'; 
 Current value: int(11) default '0' 
 ALTER TABLE index_section CHANGE rl0 rl0 int(11) unsigned NOT NULL default '0'; 
 Current value: int(11) unsigned default '0' 
 ALTER TABLE index_section CHANGE rl1 rl1 int(11) unsigned NOT NULL default '0'; 
 Current value: int(11) unsigned default '0' 
 ALTER TABLE index_section CHANGE rl2 rl2 int(11) unsigned NOT NULL default '0'; 
 Current value: int(11) unsigned default '0' 
 ALTER TABLE index_section CHANGE page_id page_id int(11) NOT NULL default '0'; 
 Current value: int(11) default '0' 
 ALTER TABLE index_section CHANGE uniqid uniqid int(11) NOT NULL auto_increment; 
 Current value: int(11) auto_increment 
 ALTER TABLE index_grlist CHANGE phash phash int(11) NOT NULL default '0'; 
 Current value: int(11) default '0' 
 ALTER TABLE index_grlist CHANGE phash_x phash_x int(11) NOT NULL default '0'; 
 Current value: int(11) default '0' 
 ALTER TABLE index_grlist CHANGE hash_gr_list hash_gr_list int(11) NOT NULL default '0'; 
 Current value: int(11) default '0' 
 ALTER TABLE index_grlist CHANGE gr_list gr_list tinytext NOT NULL; 
 Current value: tinytext 
 ALTER TABLE index_grlist CHANGE uniqid uniqid int(11)NOT NULL auto_increment; 
 Current value: int(11) auto_increment 
 ALTER TABLE index_stat_search CHANGE uid uid int(11) NOT NULL auto_increment; 
 Current value: int(11) auto_increment 
 ALTER TABLE index_stat_search CHANGE searchstring searchstring tinytext NOT NULL; 
 Current value: tinytext 
 ALTER TABLE index_stat_search CHANGE searchoptions searchoptions blob NOT NULL; 
 Current value: blob 
 ALTER TABLE index_stat_search CHANGE tstamp tstamp int(11) NOT NULL default '0'; 
 Current value: int(11) default '0' 
 ALTER TABLE index_stat_search CHANGE feuser_id feuser_id int(11) unsigned NOT NULL default '0'; 
 Current value: int(11) unsigned default '0' 
 ALTER TABLE index_stat_search CHANGE cookie cookie varchar(10) NOT NULL default ''; 
 Current value: varchar(10) default '' 
 ALTER TABLE index_stat_search CHANGE IP IP tinytext NOT NULL; 
 Current value: tinytext 
 ALTER TABLE index_stat_search CHANGE hits hits int(11) NOT NULL default '0'; 
 Current value: int(11) default '0' 
 ALTER TABLE index_stat_word CHANGE uid uid int(11) NOT NULL auto_increment; 
 Current value: int(11) auto_increment 
 ALTER TABLE index_stat_word CHANGE word word varchar(30) NOT NULL default ''; 
 Current value: varchar(30) default '' 
 ALTER TABLE index_stat_word CHANGE index_stat_search_id index_stat_search_id int(11) NOT NULL default '0'; 
 Current value: int(11) default '0' 
 ALTER TABLE index_stat_word CHANGE tstamp tstamp int(11) NOT NULL default '0'; 
 Current value: int(11) default '0' 
 ALTER TABLE index_stat_word CHANGE pageid pageid int(11) NOT NULL default '0'; 
 Current value: int(11) default '0' 
 ALTER TABLE index_debug CHANGE phash phash int(11) NOT NULL default '0'; 
 Current value: int(11) default '0' 
 ALTER TABLE index_debug CHANGE debuginfo debuginfo mediumtext NOT NULL; 
 Current value: mediumtext 
 ALTER TABLE index_config CHANGE uid uid int(11) NOT NULL auto_increment; 
 Current value: int(11) auto_increment 
 ALTER TABLE index_config CHANGE pid pid int(11) NOT NULL default '0'; 
 Current value: int(11) default '0' 
 ALTER TABLE index_config CHANGE tstamp tstamp int(11) unsigned NOT NULL default '0'; 
 Current value: int(11) unsigned default '0' 
 ALTER TABLE index_config CHANGE crdate crdate int(11) unsigned NOT NULL default '0'; 
 Current value: int(11) unsigned default '0' 
 ALTER TABLE index_config CHANGE cruser_id cruser_id int(11) unsigned NOT NULL default '0'; 
 Current value: int(11) unsigned default '0' 
 ALTER TABLE index_config CHANGE hidden hidden tinyint(4) unsigned NOT NULL default '0'; 
 Current value: tinyint(4) unsigned default '0' 
 ALTER TABLE index_config CHANGE starttime starttime int(11) unsigned NOT NULL default '0'; 
 Current value: int(11) unsigned default '0' 
 ALTER TABLE index_config CHANGE title title tinytext NOT NULL; 
 Current value: tinytext 
 ALTER TABLE index_config CHANGE description description text NOT NULL; 
 Current value: text 
 ALTER TABLE index_config CHANGE type type int(11) unsigned NOT NULL default '0'; 
 Current value: int(11) unsigned default '0' 
 ALTER TABLE index_config CHANGE depth depth int(11) unsigned NOT NULL default '0'; 
 Current value: int(11) unsigned default '0' 
 ALTER TABLE index_config CHANGE table2index table2index tinytext NOT NULL; 
 Current value: tinytext 
 ALTER TABLE index_config CHANGE alternative_source_pid alternative_source_pid blob NOT NULL; 
 Current value: blob 
 ALTER TABLE index_config CHANGE get_params get_params tinytext NOT NULL; 
 Current value: tinytext 
 ALTER TABLE index_config CHANGE fieldlist fieldlist tinytext NOT NULL; 
 Current value: tinytext 
 ALTER TABLE index_config CHANGE externalUrl externalUrl tinytext NOT NULL; 
 Current value: tinytext 
 ALTER TABLE index_config CHANGE chashcalc chashcalc tinyint(3) unsigned NOT NULL default '0'; 
 Current value: tinyint(3) unsigned default '0' 
 ALTER TABLE index_config CHANGE filepath filepath tinytext NOT NULL; 
 Current value: tinytext 
 ALTER TABLE index_config CHANGE extensions extensions tinytext NOT NULL; 
 Current value: tinytext

auch wenn ich auf make Update klicke kommts beim nächsten mal wieder.
Bei einer anderen Installation kommt das nicht.
Ich hab auch von dieser Installation dann den ganzen indexed_search Ordner rüber kopiert und diese dann neu installiert.
Aber das Problem tritt dann wieder auf.

achja ich verwenden TYPO3 3.8 und MySQL 5.0.18

steffenk ·

Die Warnungen kannst Du übersehen, das ist eine Inkompatibilität mit MySQL im Bezug auf "NOT NULL", beeinträchtigt die Funktionalität aber nicht.

Was steht unter Info / Indexsuche ?

Frank79 ·

da steht eben bei jeder Seite nur "Not indexed"

alle index Tabellen bleiben leer.
nur die index_stat_word wird gefüllt wenn ich nach etwas suchen möchte...

Frank79 ·

ich habs gefunden...

ich habe anch und nach extensions deinstalliert und gestestet.
es lag an der extension dmc_geoip
dort ist die zeile $GLOBALS['TSFE']->set_no_cache();
wenn die dortstand ist gar nichts indexiert worden.
nachdem ich die zeiel entfernt hab funktioniert es wieder