Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to auto generate pages in the backend
#1
Hi to all,

Who does know a script to auto generate 500 or 1000 pages in the back end,
with each page having some simple text content ?

I am looking for a way to determine how fast GS will be with 500 or 1000 pages in the back end.
I am sure that we all like to know the answer to this question.

Suggestions and ideas how in a best way to setup such a test:
welcome to contribute to this.

Thanks in advance,
F.
Reply
#2
Have a look at the admin/changedata.php file where all attributes are listed. You can also use Faker PHP library to create your fake data https://github.com/fzaninotto/Faker.

I hope you know that's nonsense, right? It depends on the environment: performance of your machine, server settings, amount of content in your pages and so on – slow in one environment is fast in another.

You should better ask yourself a different question, e.g. Is it really efficient to load extremely large data (thousands of pages with full of content) into memory at the same time

... to simply output a tiny bit of them and repeat this process with each request?

... to load the data in memory once then store it in memory and process it when needed with each request? (And what happens when the content of the XML change at runtime?)

... etc

With a database you avoid storing the entire document in memory. A database allow indexed searches without burdening the memory, XML files do not. It is much better suited than XML for large volumes of data and is much more efficient.

So the moral of the story is not whether it works, but rather whether it is efficient.
Reply
#3
Hi Bigin,

Thanks for your reply.

Yes the changedata.php will be very helpful in this case.
thanks for that tip !
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Reading your comment I understand that I have to better clarify my Case and Goal.

The Case.

I experience a much faster page load speed with a Get-Simple website,
even on cheap shared hosting !! More about that please read on.

So what websites am I talking about here:

I am talking about websites with roughly 5 to 20 pages, with text, pictures,
a slider or a gallery and a contact form.

Example websites:
florists, dentists, mobile phone shops, bars, plumbers, lock-smiths,
carpenters, lawyers, gardeners, offices, garages, etc. etc.

It is no secret that such a website on the same hosting with Get-Simple is much faster
than that same website made with WordPress and mysql.

But many people will NOT agree with this for many reasons:
environment, server settings, content type, etc. etc. etc.

To avoid endless discussions about that, see my Goal here after.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

My Goal

I want to setup a Get-Simple website on a cheap shared hosting,
with 500 pages with each page having average content such as
text and a picture, and I want to use that website

as a REFERENCE only.

So there will be a reference where everybody can see for him self
how such a website made with Get-Simple performs.

I am convinced that it will be amazing.
Reply
#4
Frontend is cached as far as I remember, this won't be a problem.
Reply
#5
Hi Felix, i try to make a php script in order to generate that,
and i come back to you.
I know for sure GS is not slow, even with a thousand pages.
Reply
#6
Quote:Hi Felix, i try to make a php script in order to generate that,

This is great, thanks.

I have been searching how to programmatically add pages in the backend of GS.
I could only find these commands: create_pagesxml(true)  and  xmlsave

Does anyone have more information/code/api or examples how to
programmatically add pages in the backend ?

This issue is also related to develop a GS website locally and then synchronize
the website online.
Thanks F.
Reply
#7
(2020-10-20, 06:14:33)Felix Wrote:
Quote:Hi Felix, i try to make a php script in order to generate that,

This is great, thanks.

I have been searching how to programmatically add pages in the backend of GS.
I could only find these commands: create_pagesxml(true)  and  xmlsave

Does anyone have more information/code/api or examples how to
programmatically add pages in the backend ?

This issue is also related to develop a GS website locally and then synchronize
the website online.
Thanks F.

Have you seen this useful sheet ?
https://digimute.com/uploads/downloads/gs31.pdf
Reply
#8
Quote:Have you seen this useful sheet ?

Hi zekoolweb
Thanks for your reply.

Yes I already posted about the api here:
http://get-simple.info/forums/showthread...2#pid67842

However the cheatsheet only shows a few xml commands and no examples.

But I found 3 threats about how to programmatically handle pages:

http://get-simple.info/forums/showthread.php?tid=7886
http://get-simple.info/forums/showthread.php?tid=5753
http://get-simple.info/forums/showthread.php?tid=10591

I think that will do to figure it out.

I will post back when I have the 1000 pages website ready
F.
Reply
#9
Quote:Have a look at the admin/changedata.php file where all attributes are listed. You can also use Faker PHP library to create your fake data https://github.com/fzaninotto/Faker.

Hi Bigin,
This Faker library works really great. I like it much better than the usual lorum ipsum.
Thanks for posting.
F.
Reply
#10
Thanks Felix, speak to you soon
Reply




Users browsing this thread: 1 Guest(s)